Corrections and additions
authorMatthias Clasen <matthiasc@src.gnome.org>
Sat, 30 Jun 2007 07:39:32 +0000 (07:39 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sat, 30 Jun 2007 07:39:32 +0000 (07:39 +0000)
svn path=/trunk/; revision=18308

docs/reference/ChangeLog
docs/reference/gtk/tmpl/gtkbuilder.sgml

index e575c1addfafa71b8de2556d4f8e0c47988894b3..27018d42c0669fedde0621270a49fe6402d8d449 100644 (file)
@@ -1,5 +1,7 @@
 2007-06-30  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/tmpl/gtkbuilder.sgml: Some corrections and additions
+
        * gtk/tmpl/gtkdialog.sgml: Explain details of GtkDialog
        as a buildable.
 
index c9d99e445f00ea1b087a7997818e65f999899e44..a882e3dcc49ad29df615788a5d5fcb28df6064ca 100644 (file)
@@ -45,6 +45,7 @@ which are more limited in scope.
 
 <!ATTLIST interface  domain         #IMPLIED >
 <!ATTLIST object     class          #REQUIRED
+                     type-func      #IMPLIED
                      id             #IMPLIED
                      constructor    #IMPLIED >
 <!ATTLIST property   name           #REQUIRED
@@ -54,14 +55,43 @@ which are more limited in scope.
                      after          #IMPLIED
                      object         #IMPLIED >
 <!ATTLIST child      type           #IMPLIED
-                     internal-child #IMPLIED
-                     type-func      #IMPLIED >
+                     internal-child #IMPLIED >
 ]]></programlisting>
 </para>
+<example>
+<title>A GtkBuilder UI Definition</title>
+<programlisting><![CDATA[
+<interface>
+  <object class="GtkDialog" id="dialog1">
+    <child internal-child="vbox">
+      <object class="GtkVBox">
+        <property name="border-width">10</property>
+        <child internal-child="action_area">
+          <object class="GtkHButtonBox">
+            <property name="border-width">20</property>
+            <child id="ok-button">
+              <object class="GtkButton"/>
+                <property name="label">OK</property>
+                <property name="use-stock">TRUE</property>
+                <signal name="clicked" handler="ok_button_clicked"/>
+              </object>
+            </child>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>
+]]></programlisting>
+</example>
 <para>
 Beyond this general structure, several object classes define
 their own XML DTD fragments for filling in the ANY placeholders.
+See
 </para>
+<simplelist>
+  <member><link linkend="GtkDialog-BUILDER-UI">GtkDialog as GtkBuildable</link></member>
+</simplelist>
 </refsect2>
 
 <!-- ##### SECTION See_Also ##### -->